/*
 * IncFile1.h
 *
 * Created: 2012-07-09 07:17:23
 *  Author: Antrykot
 */ 
#include "../sc-p/main.h"

#ifndef SCP_H_
#define SCP_H_

void setup_io();
void init_eeprom();

#define EEP_X_AKU	53
#define EEP_X_POW	55

#define EEP_TMP_FLOAT1	200
#define EEP_TMP_FLOAT2	204


#define EEP_PRESA			108
#define EEP_PRESB			112
#define EEP_PRESZ			116
#define EEP_PRESM			118
#define EEP_PRES_VAL_MAX	120
#define EEP_PRES_VAL_ZERO	122
#define EEP_S_PRESA			124
#define EEP_S_PRESB			128

////

extern float ap_a;
extern float ap_b;

extern u16 x_aku;
extern u16 x_pow;

#ifndef MEDIA_CH4IR		// using red connector in MIPEX_IR

#define LG_ON	PORTB |= (1 << 7);
#define LG_OFF	PORTB &= ~(1 << 7);

#define LR_ON	PORTB |= (1 << 6);
#define LR_OFF	PORTB &= ~(1 << 6);

#define LY_ON	PORTB |= (1 << 5);
#define LY_OFF	PORTB &= ~(1 << 5);

#else
#define LG_ON	
#define LG_OFF	

#define LR_ON	
#define LR_OFF	

#define LY_ON	
#define LY_OFF	
#endif

#endif /* INCFILE1_H_ */